package com.zhai.boot.mq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @package: com.zhai.boot.mq.receiver
 * @project-name: zhai-boot
 * @description: zhai 消费
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-9-14 15:41
 */
@Component
@RabbitListener(queues = "zhai")
public class ZhaiReceiver {

    @RabbitHandler
    public void process(String hello) {
        System.err.println("消费者 : " + hello);
    }
}
